package com.pzr.soccer.model;

import lombok.Data;

/**
 * @Author pzr 返回类型
 * @date:2022-01-04-9:10
 * @Description:
 **/
@Data
public class RT {
    public static final long Security_Tag = 10000;
    public static final long Security_Tag_Login = 1000010;
    public static final long Security_Tag_Registry = 1000011;
    public static final long Security_Tag_Logout = 1000019;
    public static final long Security_Tag_Update = 1000020;
    public static final long Security_Tag_Authentication = 1000030;

    public static final long Plan_Tag = 30000;
    public static final long Match_Tag = 20000;
    public static final long Crawler_Tag = 20000;

    public static final long Internal_Error_Tag=90000;
    public static final long None_State_Tag=99999;

    public static final String None_Description_Tag="None_Description_Tag";

    private long state;
    private String description;

    public static RT s(long state){
        return rt(state,null);
    }
    public static RT d(String description){
        return rt(None_State_Tag,description);
    }
    public static RT empty(){
        return rt(None_State_Tag,None_Description_Tag);
    }

    public static RT rt(long state,String description){
        RT rt=new RT();
        rt.setState(state);
        rt.setDescription(description);
        return rt;
    }

}
